home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
lib
/
live_contour.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
2KB
|
84 lines
; $Id: live_contour.pro,v 1.4 1997/04/16 20:20:26 billo Exp $
;
; Copyright (c) 1996-1997, Research Systems, Inc. All rights reserved.
; Unauthorized reproduction prohibited.
;
;+
; NAME:
; LIVE_CONTOUR
;
; PURPOSE:
; Entry point to LIVE_CONTOUR
;
; CALLING SEQUENCE:
; LIVE_CONTOUR, z
;
; OPTIONAL KEYWORDS:
; XINDEPENDENT=x ; The independent vector/array [optional]
; YINDEPENDENT=y ; The independent vector/array [optional]
; STYLE=style ; A style name (string) [optional]
; INDEXED_COLOR=indexedColor ; Set to use indexed color [optional]
;
; DEVELOPMENT NOTES:
; -
;
;------------------------------------------------------------------------------
pro Live_Contour, z, _EXTRA=extra
ON_ERROR, 2
WIDGET_CONTROL, /HOURGLASS
; Determine if the L_CONTOUR routine has been resolved
;
result = ROUTINE_INFO(/UNRESOLVED)
void = WHERE(result eq 'L_CONTOUR', count)
; If the L_CONTOUR routine has not been resolved find insight.sav
; and restore it.
;
if (count ne 0) then begin
; Look for insight in its default location idlxx/lib/hook
;
insightPath = FILEPATH('insight.sav', SUBDIR=['lib','hook'])
void = FINDFILE(insightPath, COUNT=count)
; If it wasn't found, notify the user.
;
if (count eq 0) then begin
result = DIALOG_MESSAGE($
['Insight was not found.',$
'Please make sure insight.sav is in your hook directory', $
'and !DIR points to your IDL directory.', $
'Do you wish to locate insight.sav?'], /CANCEL)
; If they want to search for it, display std file dialog.
;
if (result eq 'OK') then begin
insightPath = $
DIALOG_PICKFILE(TITLE='PLease locate insight.sav', $
/MUST_EXIST)
if (insightPath eq '') then $
return
endif else $
return
endif
; Restore L_CONTOUR code
;
restore, insightPath
endif
; Call L_CONTOUR with passed in parameters
;
L_CONTOUR, z, _EXTRA=extra
end